<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>文字背景装饰</title>
</head>

<body>
    https://blog.csdn.net/lwf3115841/article/details/128927608
    https://blog.csdn.net/FE_dev/article/details/78450844
    <style>
        .quote {
            position: relative;
            font-size: 24px;
            font-style: italic;
            margin: 20px 0;
            padding: 10px 20px;
        }

        .quote span::before {
            position: absolute;
            content: "";
            bottom: 0;
            left: 2px;
            display: block;
            width: 36px;
            height: 3px;
            border-radius: 5px;
            background: linear-gradient(to right, #f65142 10%, #ffffff 90%);
        }

        .quote span::after {
            content: attr(text);
            position: absolute;
            right: 1px;
            bottom: 2px;
            font-size: 48px;
            z-index: -1;
            font-weight: bold;
            letter-spacing: -2px;
            background: linear-gradient(to bottom, #ff8f68 10%, #ffffff 60%);
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            font-family: system-ui;



        }

        span {
            position: relative;
        }
    </style>

    <div class="quote">
        <span text="Quilt">CSS 实现文本装饰效果</span>
    </div>


</body>

</html>